package com.baibei.ebec.sdk;

import com.baibei.sdk.Empty;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 推送接口
 * Created by ChenRui on 2017/8/3 0003 16:18.
 */
public interface IPushApi {

    /**
     * 重置登录密码类型
     */
    String SMS_TYPE_LOGIN_PASSWORD = "resetPassword";

    /**
     * 重置资金密码
     */
    String SMS_TYPE_FUND_PASSWPRD = "fundPassword";
    
    /**
     * 提现获取验证码
     */
    String SMS_TYPE_WITHDRAW = "withdraw";

    /**
     * 注册类型
     */
    String SMS_TYPE_REGISTER = "register";

    @POST(ApiConstant.API_PUSH_SMS)
    @FormUrlEncoded
    Observable<Empty> sendSMS(@Field("type") String type, @Field("mobile") String mobile,@Field("invitationCode") String invitationCode);

    /**
     * 校验手机验证码
     *
     * @param mobile  手机号码
     * @param smsCode 验证码
     */
    @POST(ApiConstant.API_PUSH_CHECK_SMS)
    @FormUrlEncoded
    Observable<Empty> checkSMSCode(@Field("mobile") String mobile, @Field("verifyCode") String smsCode);


}
